-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo: Handle excluded paths in workspaces #323
base: master
Are you sure you want to change the base?
Conversation
25aa15f
to
adf252a
Compare
23797ed
to
19bba11
Compare
19bba11
to
534b990
Compare
@gasinvein is this still valid since the fixed bug has been closed? |
Yes, the issue was closed by mistake I believe. |
@@ -146,6 +153,9 @@ async def get_dep_packages(entry, toml_dir): | |||
if dep_name in packages: | |||
continue | |||
dep_dir = os.path.normpath(os.path.join(toml_dir, dep['path'])) | |||
if is_excluded(dep_dir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that an excluded member of a workspace is just excluded from the list of members of the workspace. If a package is listed as a dependency, it will be needed during compilation so it must be resolved somehow so it doesn't make sense to not try to load it.
I believe that the main problem in #322 is that the script eagerly loads the manifest of every package in a git source and tries to resolve all of its dependencies, even if we don't need the package in the end. When we encounter a package, we should always check if it's listed in the
|
#399 was merged. And other fixes too. Maybe it's worth retrying. |
Should fix #322